/**
 * @Author xieha
 * @Email xiehao35755@163.com
 * @Date 2020-02-16 17:18
 */


package com.xh.blog.common.enums;

/**
 * Created by xieha on 2020-02-16.
 */
public enum ResponseCodeEnum {
    SUCCESS(200,"请求成功"),
    ERROR(500,"请求失败"),
    PARAMERROR(100,"非法参数");

    private int code;
    private String msg;

    /**
     * Msg string.
     *
     * @return the string
     */
    public String msg() {
        return msg;
    }

    /**
     * Code int.
     *
     * @return the int
     */
    public int code() {
        return code;
    }

    ResponseCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
